soft-reboot: Also handle /boot
authorColin Walters <walters@verbum.org>
Tue, 22 Jul 2025 21:38:41 +0000 (17:38 -0400)
committerColin Walters <walters@verbum.org>
Thu, 24 Jul 2025 14:26:09 +0000 (10:26 -0400)
Closes: https://github.com/ostreedev/ostree/issues/3486
Signed-off-by: Colin Walters <walters@verbum.org>
src/libostree/ostree-soft-reboot.c

index a94ab41ff852e06a35b83a3d17f874f7297f1b56..809b79914607dfd98f40ad5e9ec7c8be4c0eb04f 100644 (file)
@@ -72,6 +72,9 @@ _ostree_prepare_soft_reboot (GError **error)
   if (!using_composefs)
     return glnx_throw (error, "failed to mount with composefs");
 
+  if (!otcore_mount_boot (sysroot_path, OTCORE_RUN_NEXTROOT, error))
+    return FALSE;
+
   if (!otcore_mount_etc (config, &metadata_builder, OTCORE_RUN_NEXTROOT, error))
     return FALSE;